import request from '@/utils/request'
export const getList = (data) => {
  return request({
    url: '/file/get_file_list',
    method: 'get',
    params: data
  })
}

export const del = (id) => request({
  url: '/file/del',
  method: 'post',
  data: { id: id }
})
export const add = (data) => request({
  url: '/file/set_file',
  method: 'post',
  data: data
})
export const update = (data) => request({
  url: '/file/set_file',
  method: 'post',
  data: data
})

// 修改字段

export const updateStatus = (data) => request({
  url: '/file/modify_field',
  method: 'post',
  data: data
})
